//
//  CLDeviceiOSLocationTool.h
//  togetherLBS
//
//  Created by Phyllis Hu on 15/10/30.
//  Copyright (c) 2015年 celi. All rights reserved.
//  手机端定位工具，只能用于获取自己位置

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>

@protocol CLDeviceiOSLocationToolDelegate <NSObject>
@optional
/**
 * 定位到位置
 */
- (void)CLDeviceiOSLocation:(CLLocation*)location;

/**
 *  获得地理位置
 */
- (void)CLDeviceiOSLocationName:(CLPlacemark*)placemark;

@end

@interface CLDeviceiOSLocationTool : CLLocationManager

@property (nonatomic,weak) id<CLDeviceiOSLocationToolDelegate> locationDelegate;


- (instancetype)initWithCLLocationManagerLocationAccuracyType:(CLLocationAccuracy)LocationAccuracyType;

+ (id)CLLocationManagerWithLocationAccuracyType:(CLLocationAccuracy)LocationAccuracyType;

/**
 *  开始定位
 */
- (void)startLocation;

@end
